import Layout from '@/layout'
export default {
  path: '/employee',
  // 改成这个名字，浏览器就不会警告，还是name的话会和子路由的name冲突，因为子路由的path配置的空字符串
  first_level_name: 'employee',
  component: Layout,
  children: [{
    path: '',
    name: 'employee',
    component: () => import('@/views/employee'),
    meta: {
      title: '员工',
      icon: 'people'
    }
  }, {
    path: '/employee/detail/:id?', // 员工详情的地址，:id表示携带id参数，?表示可有可无
    component: () => import('@/views/employee/detail.vue'),
    name: 'detail',
    hidden: true, // 表示隐藏在左侧菜单
    meta: {
      title: '员工详情' // 显示在面包屑的文本
    }
  }]
}
